/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __KEY_H
#define __KEY_H

#include "incl.h"

struct usart_key_t{
	uint8_t lastState;	//上一次的按键状态，用于检测下降沿
	GPIO_PinState downFlag;		//是否按下过按键
};

void key_music(void);
uint8_t fun_key_get(uint8_t num);
uint8_t data_key_get_num(void);
uint8_t data_key_get_bg(void);
extern uint8_t key_buff[3];
#endif /* __KEY_H */

/******************* (H) COPYRIGHT 2024 FUYEBING*****END OF FILE************/

